package com.ruoyi.hospital.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 检查记录对象 inspection_record
 *
 * @author qichi
 * @date 2023-07-25
 */
public class InspectionRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 检查记录id */
    private Long id;

    /** 租户id */
    @Excel(name = "租户id")
    private Long tenantId;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 宠物id */
    @Excel(name = "宠物id")
    private Long petId;

    /** 客户id */
    @Excel(name = "客户id")
    private Long customerId;

    /** 处方id */
    @Excel(name = "处方id")
    private Long prescriptionId;

    /** 处方编号 */
    @Excel(name = "处方编号")
    private String prescriptionCode;

    /** 检查项目id */
    @Excel(name = "检查项目id")
    private Long inspectionId;

    /** 检查项目编号 */
    @Excel(name = "检查项目编号")
    private String inspectionCode;

    /** 检查次数 */
    @Excel(name = "检查次数")
    private Long number;

    /** 检查位置 */
    @Excel(name = "检查位置")
    private String address;

    /** 检查时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检查时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inspectionTime;

    /** 检查状态0未开始1检查中2已完成 */
    @Excel(name = "检查状态0未开始1检查中2已完成")
    private Integer inspectionStatus;

    /** 检查结果 */
    @Excel(name = "检查结果")
    private String inspectionResult;

    /** 设备SN码 */
    @Excel(name = "设备SN码")
    private String sn;

    /** 就诊单id */
    @Excel(name = "就诊单id")
    private Long consultationId;

    /** 就诊单编码 */
    @Excel(name = "就诊单编码")
    private String consultationNo;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTenantId(Long tenantId)
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId()
    {
        return tenantId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setPetId(Long petId)
    {
        this.petId = petId;
    }

    public Long getPetId()
    {
        return petId;
    }
    public void setCustomerId(Long customerId)
    {
        this.customerId = customerId;
    }

    public Long getCustomerId()
    {
        return customerId;
    }
    public void setPrescriptionId(Long prescriptionId)
    {
        this.prescriptionId = prescriptionId;
    }

    public Long getPrescriptionId()
    {
        return prescriptionId;
    }
    public void setPrescriptionCode(String prescriptionCode)
    {
        this.prescriptionCode = prescriptionCode;
    }

    public String getPrescriptionCode()
    {
        return prescriptionCode;
    }
    public void setInspectionId(Long inspectionId)
    {
        this.inspectionId = inspectionId;
    }

    public Long getInspectionId()
    {
        return inspectionId;
    }
    public void setInspectionCode(String inspectionCode)
    {
        this.inspectionCode = inspectionCode;
    }

    public String getInspectionCode()
    {
        return inspectionCode;
    }
    public void setNumber(Long number)
    {
        this.number = number;
    }

    public Long getNumber()
    {
        return number;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setInspectionTime(Date inspectionTime)
    {
        this.inspectionTime = inspectionTime;
    }

    public Date getInspectionTime()
    {
        return inspectionTime;
    }
    public void setInspectionStatus(Integer inspectionStatus)
    {
        this.inspectionStatus = inspectionStatus;
    }

    public Integer getInspectionStatus()
    {
        return inspectionStatus;
    }
    public void setInspectionResult(String inspectionResult)
    {
        this.inspectionResult = inspectionResult;
    }

    public String getInspectionResult()
    {
        return inspectionResult;
    }
    public void setSn(String sn)
    {
        this.sn = sn;
    }

    public String getSn()
    {
        return sn;
    }
    public void setConsultationId(Long consultationId)
    {
        this.consultationId = consultationId;
    }

    public Long getConsultationId()
    {
        return consultationId;
    }
    public void setConsultationNo(String consultationNo)
    {
        this.consultationNo = consultationNo;
    }

    public String getConsultationNo()
    {
        return consultationNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tenantId", getTenantId())
            .append("deptId", getDeptId())
            .append("petId", getPetId())
            .append("customerId", getCustomerId())
            .append("prescriptionId", getPrescriptionId())
            .append("prescriptionCode", getPrescriptionCode())
            .append("inspectionId", getInspectionId())
            .append("inspectionCode", getInspectionCode())
            .append("number", getNumber())
            .append("address", getAddress())
            .append("inspectionTime", getInspectionTime())
            .append("inspectionStatus", getInspectionStatus())
            .append("inspectionResult", getInspectionResult())
            .append("sn", getSn())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("consultationId", getConsultationId())
            .append("consultationNo", getConsultationNo())
            .toString();
    }
}
